<%-- 
    Document   : client
    Created on : 2014-11-30, 21:19:47
    Author     : michal
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>

<jsp:include page="/header.jsp" />

<html:errors></html:errors>

<html:form action="client.do?method=manage" styleId="manage-client-form">
    <fieldset>
        <legend>User Data</legend>
        
        <div>
            <label for="username">Login:</label>
            <html:text property="username" styleId="username" />
        </div>

        <div>
            <label for="password">Password:</label>
            <html:password property="password" styleId="password" />
        </div>
    </fieldset>
        
    <fieldset>
        <legend>Client Data</legend>
        
        <div>
            <label for="firstname">First name:</label>
            <html:text property="firstname" styleId="firstname" />
        </div>

        <div>
            <label for="lastname">Last name:</label>
            <html:text property="lastname" styleId="lastname" />
        </div>

        <div>
            <label for="pesel">PESEL:</label>
            <html:text property="pesel" styleId="pesel" />
        </div>

        <div>
            <label for="address">Address:</label>
            <html:text property="address" styleId="address" />
        </div>
    </fieldset>
    
    <% if (request.getParameter("clientId") != null) { %>
        <html:hidden property="clientId" styleId="clientId" />
    <% } %>
    <html:hidden property="isSent" value="true" />
    <html:submit value="Save" />
</html:form>

<jsp:include page="/footer.jsp" />